﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Media;
using System.Windows.Shapes;

namespace Bigeagle.WPF.Controls
{
    /// <summary>
    /// 地图线段类
    /// </summary>
    public class MapLine
    {
        /// <summary>
        /// 线段点集合
        /// </summary>
        /// <remarks>经纬度字符串集合。</remarks>
        List<string> _Points;

        /// <summary>
        /// 获得线段点集合
        /// </summary>
        public List<string> Points
        {
            get { return _Points; }
        }

        /// <summary>
        /// 线宽度
        /// </summary>
        double _Thickness;

        /// <summary>
        /// 设置或获得线的宽度
        /// </summary>
        public double Thickness
        {
            get { return _Thickness; }
            set { _Thickness = value; }
        }

        /// <summary>
        /// 线段画刷
        /// </summary>
        Brush _Stroke;

        /// <summary>
        /// 设置或获得线段画刷
        /// </summary>
        public Brush Stroke
        {
            get { return _Stroke; }
            set { _Stroke = value; }
        }

        /// <summary>
        /// 用户自定义数据
        /// </summary>
        private object _Tag;

        /// <summary>
        /// 设置或获得用户自定义数据
        /// </summary>
        public object Tag
        {
            get { return _Tag; }
            set { _Tag = value; }
        }

        
        /// <summary>
        /// 构造函数
        /// </summary>
        public MapLine()
        {
            _Points = new List<string>();
            _Thickness = 1.0d;
            _Stroke = Brushes.Black;
        }


        /// <summary>
        /// 重写构造函数
        /// </summary>
        /// <param name="stroke"></param>
        /// <param name="thickness"></param>
        public MapLine(Brush stroke, double thickness)
        {
            _Points = new List<string>();
            _Thickness = thickness;
            _Stroke = stroke;
        }

    }//end class
}//end namespace
